﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="SES.CMS.Search" %>
<%@ Register TagPrefix="cp" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="content">
        
        <div class="contentright">
            <div class="newproduct">
                <div class="heading">
                    <div class="heading1">
                       <h3 class="heading2"><span>TÌM KIẾM</span></h3>
                    </div>
                </div>
            </div>
            <div class="foo-news">
                <asp:Repeater runat="server" ID="rptNewProduct">
                    <ItemTemplate>
                        <div class="product">
                            <a class="a-hover" href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                title='<%#Eval("ProductTitle") %>'>
                                <img src='<%#domain()%>/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                    title='<%#Eval("ProductTitle") %>' />
                                <div class="product-no-promotion">
                                    <p class="hidden p-title">
                                        <%#Eval("ProductTitle") %></p>
                                    <p class="hidden p-price">
                                        <%#SES.CMS.Ultility.GetPrice(Eval("ProductID")) %>
                                </div>
                            </a>
                            <div class="action-product">
                                <div class="product-button">
                                    <a href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                        title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                    <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                                </div>
                            </div>
                            <span style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important'
                                class="promotion-product-span">KM</span>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div class="collection">
                <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
                    LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
                    PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
                    PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
                    ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
                    ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
                </cp:CollectionPager>
                <div class="collectPage">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
